/*
 * 2006-04-18 Li Ximing, Zhang Yanbo - Create.
 */
package com.hd123.rumba.log;

import com.hd123.rumba.exception.StringTooLongException;

/**
 * Action日志 | 实体 | 实现类
 * 
 * @author lxm
 * @author zhangyanbo
 * 
 */
public class ActionLog extends OperateLog implements IActionLog {

  private String actionClass;
  private String actionCaption;

  public String getActionCaption() {
    return actionCaption;
  }

  public void setActionCaption(String actionCaption) throws StringTooLongException {
    if (actionCaption != null)
      actionCaption = CActionLog.truncate(actionCaption, CActionLog.LENGTH_ACTIONCAPTION,
          "actionCaption", CActionLog.CAPTION_ACTIONCAPTION);
    this.actionCaption = actionCaption;
  }

  public String getActionClass() {
    return actionClass;
  }

  public void setActionClass(String actionClass) throws StringTooLongException {
    if (actionClass != null)
      actionClass = CActionLog.truncate(actionClass, CActionLog.LENGTH_ACTIONCLASS, "actionClass",
          CActionLog.CAPTION_ACTIONCLASS);
    this.actionClass = actionClass;
  }

}
